print("Example script mage_ice.lua.");

local curScheme = Scheme.new()
schemeMap[83] = curScheme

-------------------------
local ShuangHuoZhiJian = CLASS(Spell)
ShuangHuoZhiJian.name = '霜火之箭'

function ShuangHuoZhiJian:canCast( )
	-- body
	print('ShuangHuoZhiJian:canCast( )')
	return getBuffRemianTime( 'player', '冰冷智慧' ) > 0
end

---------------------------
local BingQiangShu = CLASS(Spell)
BingQiangShu.name = '冰枪术'

function BingQiangShu:canCast( )
	-- body
	print('function BingQiangShu:canCast( )')
	local remainTime, count =  getBuffRemianTime( 'player', '寒冰指' )
	return count > 1 or 0 < remainTime and remainTime < 5   
end


---------------------------
local BingQiangShu2 = CLASS(Spell)
BingQiangShu2.name = '冰枪术'


---------------------------
local HanBingJian = CLASS(Spell)
HanBingJian.name = '寒冰箭'

---------------------------
local BingZhuiShu = CLASS(Spell)
BingZhuiShu.name = '冰锥术'


curScheme:addSpell(ShuangHuoZhiJian.new())
curScheme:addSpell(BingQiangShu.new())
curScheme:addSpell(BingZhuiShu.new())


curScheme:addSpell(HanBingJian.new())
curScheme:addSpell(BingQiangShu2.new())

--/cast 暴风雪
-- /run CastAtPosition(ObjectPosition('target'))


